<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo isset($admin_title)?$admin_title:"";?>-<?php echo isset($site_name)?$site_name:"";?></title>
<meta name="author" content="designer:webzhu, date:2012-03-23" />
<link type="image/x-icon" href="<?php echo urldecode(Url::urlFormat("@favicon.ico"));?>" rel="icon">
<link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/base.css"));?>" />
<link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/admin.css"));?>" />
<link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/font_icon.css"));?>" />
<?php echo JS::import('jquery');?>
<script type="text/javascript" src="<?php echo urldecode(Url::urlFormat("@static/js/common.js"));?>"></script>
<!--[if lte IE 7]><script src="<?php echo urldecode(Url::urlFormat("@static/css/fonts/lte-ie7.js"));?>"></script><![endif]-->
</head>
<body >
<div id="header">
	<div class="nav_sub">
			    	您好[<?php echo isset($manager['name'])?$manager['name']:"";?>]&nbsp; | <a href="<?php echo urldecode(Url::urlFormat("/simple/login"));?>" target="_blank">返回前台</a> | <a href="<?php echo urldecode(Url::urlFormat("/admin/logout"));?>">退出</a>&nbsp; | &nbsp; <a id="btn_clear" href="javascript:;">清理缓存</a>
	</div>
    <div id="Logo"><a href=""><img src="<?php echo urldecode(Url::urlFormat("@static/images/logo_min.png"));?>"></a></div>
	<ul id="main_nav" class="clearfix">
	<?php foreach($mainMenu as $key => $item){?>
		<li <?php if($key==$menu_index['menu']){?>class="active"<?php }?>><a href="<?php echo urldecode(Url::urlFormat("$item[link]"));?>"  ><?php echo isset($item['name'])?$item['name']:"";?></a></li>
	<?php }?>
	</ul>
</div>
<div id="mainContent">
	<div id="sidebar" >
		<ul class="menu" style="margin-top:15px;">
		<?php foreach($subMenu as $key => $item){?>
			<li class="submenu">
			<ul><li class="sub-index"><b><a href="javascript:;"><?php echo isset($item['name'])?$item['name']:"";?></a></b></li>
			<?php foreach($menu->getNodes($item['link']) as $key => $item){?>
			<?php if(substr($item['link'],-5)!='_edit' && !$item['hidden'] ){?>
				<li><a href='<?php echo urldecode(Url::urlFormat("$item[link]"));?>' <?php if($item['link']==$nav_link){?>class="current"<?php }?> ><?php echo isset($item['name'])?$item['name']:"";?></a></li>
				<?php }?>
			<?php }?>
			</ul>
			</li>
		<?php }?>
		</ul>
	</div>
	<div id="content" >

		<?php if(!isset($msg)){?><?php $msg=Req::post('msg');?><?php }?>
		<?php if(!isset($validator)){?><?php $validator=Req::post('validator');?><?php }?>
		<?php if(isset($msg[0])){?>
		<div id="message-bar" class="message_<?php echo isset($msg[0])?$msg[0]:"";?>"><?php echo isset($msg[1])?$msg[1]:"";?></div>
		<?php }elseif(isset($validator)){?>
		<div class="message_warning"><?php echo isset($validator['msg'])?$validator['msg']:"";?></div>
		<?php }?>
		<?php echo JS::import('dialog?skin=brief');?><?php echo JS::import('dialogtools');?><?php echo JS::import('form');?><?php echo JS::import('validator');?><h2 class="page_title"><?php echo isset($node_index['name'])?$node_index['name']:"";?></h2><div class="form2">    <form name="config_form" method="post" action="<?php echo urldecode(Url::urlFormat("/admin/config/group/jjset"));?>">        <dl class="lineD">            <dt>投资级别：&nbsp;&nbsp;&nbsp;</dt>            <dd>                <?php $item=null; $query = new Query("grade");$items = $query->find(); foreach($items as $key => $item){?>                <?php echo isset($item['name'])?$item['name']:"";?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                <?php }?>            </dd>        </dl>        <dl class="lineD">            <dt>资产仓值倍数：&nbsp;&nbsp;&nbsp;</dt>            <dd>                <input name="jjset_grade_times1" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_grade_times2" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_grade_times3" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_grade_times4" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <label>是投资金额的倍数</label>            </dd>        </dl>        <dl class="lineD">            <dt>分红盈利：&nbsp;&nbsp;&nbsp;&nbsp;</dt>            <dd>                <input name="jjset_fhj1" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_fhj2" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_fhj3" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_fhj4" type="text" style="width:40px;" value="">&nbsp;&nbsp;&nbsp;&nbsp;(单位：积分/天)                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label>不同级别每天分积分数,直到达</label>&nbsp;&nbsp;                <input name="jjset_fhjLimit" type="text" style="width:40px;" value="">&nbsp;&nbsp;倍为止&nbsp;            </dd>        </dl>        <dl class="lineD">            <dt>扩展奖：&nbsp;&nbsp;&nbsp;</dt>            <dd>                直推1-2人:&nbsp;&nbsp;&nbsp;&nbsp;第一代分红积分收入的 <input name="jjset_kzj1" type="text" style="width:40px;" value="">&nbsp;%            </dd>            <dd>                直推3-4人:&nbsp;&nbsp;&nbsp;&nbsp;第二代分红积分收入的 <input name="jjset_kzj2" type="text" style="width:40px;" value="">&nbsp;%            </dd>            <dd>                直推5人以上:&nbsp;第三代分红积分收入的 <input name="jjset_kzj3" type="text" style="width:40px;" value="">&nbsp;%            </dd>        </dl>        <dl class="lineD">            <dt>助力奖：&nbsp;&nbsp;&nbsp;</dt>            <dd>                直推 2-4人:&nbsp;&nbsp;&nbsp;上一代分红积分收入的 <input name="jjset_zlj_one" type="text" style="width:40px;" value="">&nbsp;%            </dd>            <dd>                直推5人以上:                上一代分红积分收入的 <input name="jjset_zlj_two_1" type="text" style="width:40px;" value="">&nbsp;%&nbsp;&nbsp;&nbsp;&nbsp;                上二代分红积分收入的百分<input name="jjset_zlj_two_2" type="text" style="width:40px;" value="">&nbsp;%            </dd>        </dl>        <dl class="lineD">            <dt>重消积分：&nbsp;&nbsp;&nbsp;</dt>            <dd>                <input name="jjset_cxjf" type="text" style="width:40px;" value="">&nbsp;%&nbsp;&nbsp;&nbsp;            </dd>        </dl>        <dl class="lineD">            <dt>分红积分：&nbsp;&nbsp;&nbsp;&nbsp;</dt>            <dd>                <input name="jjset_jjf" type="text" style="width:40px;" value="">&nbsp;%进入奖金分&nbsp;&nbsp;&nbsp;&nbsp;                <input name="jjset_zcf" type="text" style="width:40px;" value="">%进入注册分&nbsp;&nbsp;&nbsp;&nbsp;            </dd>        </dl>        <dl class="lineD">            <dt>税收综合管理服务费：&nbsp;&nbsp;&nbsp;</dt>            <dd>                <input name="jjset_fuf" type="text" style="width:40px;" value="">&nbsp;%            </dd>        </dl>        <dl class="lineD">            <dt>爱心分红比率：&nbsp;&nbsp;&nbsp;</dt>            <dd>                <input name="jjset_axjj" type="text" style="width:40px;" value="">&nbsp;%            </dd>        </dl>        <div class="center">            <input type="submit" name="submit" class="button action fn" value="确 定">        </div>    </form></div><script>    <?php if(isset($message)){?>    art.dialog.tips('<p class="success"><?php echo isset($message)?$message:"";?></p>');    <?php }?>    var form = new Form('config_form');    <?php $config = Config::getInstance();?>    var data = <?php echo JSON::encode($config->get('jjset'));?>;    form.init(data);</script>
	</div>
</div>
<script type="text/javascript">
	$(function () {
		if('<?php echo Req::args("con");?>'=='admin'){
			$(".submenu .current").parent().parent().parent().addClass('current');
		}else{
			$(".submenu").addClass('current');
		}
		$(".submenu .sub-index").on("click",function(){
			$(this).parent().parent().toggleClass('current');
		})
	})

</script>
</body>
</html>
<script>
	$("#btn_clear").on("click",function(){
		$.post("<?php echo urldecode(Url::urlFormat("/admin/clear_act"));?>",function(data){
			art.dialog.tips("<p class='"+data['status']+"'>"+data['msg']+"</p>");
		},'json');
	});
</script>
<!--Powered by TinyRise-->